<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\Breadcrumbs;

/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->params['breadcrumbs'][] = ['label' => '样本中心', 'url' => ['/sample/view-position']];
$this->params['breadcrumbs'][] = ['label' => '入库情况', 'url' => ['/sample/view-position']];
$this->registerJsFile('@web/js/from.js', ['depends' => 'app\assets\AppAsset']);

switch ($view) {
  case 'create': $thisTitle = '新建'; break;
  case 'update': $thisTitle = '更新'; break;
  case 'view': $thisTitle = '查看'; break;
  
  default: $thisTitle = ''; break;
}
if ($thisTitle != '') {
  $this->params['breadcrumbs'][] = $thisTitle.'入库情况';
}
?>
<div class="site-index">

  <?= $this->render('main') ?>

  <div class="fill-info">

    <?= Breadcrumbs::widget([
      'homeLink' => ['label' => '医疗管理系统', 'url' => '#'],
      'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
    ]) ?>

    <?= $this->render('@app/views/from/'.$view.'.php', [
      'dataProvider' => isset($dataProvider) ? $dataProvider : '',
      'model' => isset($model) ? $model : '',
      'deliver' => isset($deliver) ? $deliver : '',
      'total' => isset($total) ? $total : '',
    ]) ?>
  </div>
</div>
